Skip to content

Clarify frontmatter requirements in contributing-skills.md#38

Merged
jpuzz0 merged 2 commits intopatternfly:mainfrom
wise-king-sullyman:clarify-frontmatter-requirements-in-skills
Mar 23, 2026
Merged

Clarify frontmatter requirements in contributing-skills.md#38
jpuzz0 merged 2 commits intopatternfly:mainfrom
wise-king-sullyman:clarify-frontmatter-requirements-in-skills

Conversation

@wise-king-sullyman
Copy link
Contributor

@wise-king-sullyman wise-king-sullyman commented Mar 19, 2026

Closes #37

Assisted by Claude Code

```

That's it. No frontmatter required. No code. No config. Just instructions in markdown.
Every SKILL.md needs YAML frontmatter with a `name` and `description` so the plugin system can discover it:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm going to push back on "needs" here.

Here's a working example with no frontmatter: unit-test-generator/SKILL.md — it registers fine as /pf-react:unit-test-generator:
Image

Skills are discovered by directory path, not frontmatter. A description is important — but it can just be the first line of the SKILL.md, it doesn't need to be in YAML frontmatter. And name is redundant since the directory name is the skill name.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, when I first tried to use my skill without adding the frontmatter claude couldn't find it or this unit-test-generator skill 🤔

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How were you trying to find it exactly? Maybe you could demonstrate this. I don't mind making it a requirement - but it seems its not at least in terms of Claude Code discovery.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking into this more - the skills npm package (a 3rd party tool) does not discover skills unless they have a "name" - so that's an incentive here at least. Also, the Claude code official docs do cite it - linked to slash command usage - https://code.claude.com/docs/en/skills. So I think this is enough to just make it a requirement for us.

@jpuzz0
Copy link
Collaborator

jpuzz0 commented Mar 23, 2026

The existing skill unit-test-generator doesn't have name frontmatter yet — mind adding it as part of this PR so the repo's own skills match the new guidelines?

…unit-test-generator

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link
Collaborator

@jpuzz0 jpuzz0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@jpuzz0 jpuzz0 merged commit 7552cd0 into patternfly:main Mar 23, 2026
@wise-king-sullyman wise-king-sullyman deleted the clarify-frontmatter-requirements-in-skills branch March 24, 2026 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update CONTRIBUTING-SKILLS.md: recommend frontmatter for skills

2 participants